//
//  ThemeObject.h
//  NvSellerShowSDK
//
//  Created by roc on 17/9/9.
//  Copyright © 2017年 roc. All rights reserved.
//

#import <Foundation/Foundation.h>

//create Mode
typedef enum {
    NvSSVideoCreateScaleSquare = 0,  // 正方形  1:1
    NvSSVideoCreateScaleVertical,    // 竖直    9:16
    NvSSVideoCreateScaleHorizontal   // 水平   16:9
} NvSSVideoCreateScale;

typedef enum {
    NvAssetPackageStatePaiedNot = 0,     //未订阅
    NvAssetPackageStateDownloadNot,      //未下载
    NvAssetPackageStateCanUse            //已下载
}NvAssetPackageState;

@interface AssetPackageObject : NSObject

/*种类：CaptionStyle,    字幕样式
       AnimatedSticker,   动画贴纸
       Theme,                 主题
 */
@property (nonatomic, copy) NSString *assetPackageType;
//唯一标示符
@property (nonatomic, copy) NSString *uuid;
//画布比例
@property (nonatomic, assign) NvSSVideoCreateScale videoScale;
//购买状态：未购买   已购买
@property (nonatomic, assign) BOOL hasPaid;
//名称
@property (nonatomic, copy) NSString *displayName;
//封面
@property (nonatomic, copy) NSString *imageCoverUrl;
//展片
@property (nonatomic, copy) NSString *previewVideoUrl;
//模版下载地址
@property (nonatomic, copy) NSString *themeUpdateUrl;
//zip包地址
@property (nonatomic, copy) NSString *zipDownUrl;
//版本号(注册用)
@property (nonatomic, copy) NSString * version;
//模版存放地址
@property (nonatomic, copy) NSString *fileSavePath;
//当前状态(读取展品/封面用)
@property (nonatomic, assign) NvAssetPackageState state;
/*
    NSDictionary   Keys:{
        @"assetPackageType" :
        @"uuid"             :
        @"videoScale"       :
        @"displayName"      :
        @"imageCoverUrl"    :
        @"previewVideoUrl"  :
        @"zipDownUrl"       :
        @"hasPaid"          :
}
 */
- (instancetype)initWithDictionary:(NSDictionary *)objInfo;
- (instancetype)initWithPath:(NSString *)path andAssetId:(NSString *)assetId andType:(NvSSVideoCreateScale)type;
@end
